package com.atguigu.day08.bean.test04;

public class Test04 {
    public static void main(String[] args) {
        Card c = new Card("黑桃",'A');
        c.showCard();
    }
//    {"黑桃","红心","方块","梅花"};
}
class Card{
    private String color;
    private char point;

    public Card(String color, char point) {
        this.color = color;
        this.point = point;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public int getPoint() {
        return point;
    }

    public void setPoint(char point) {
        this.point = point;
    }
    void showCard(){
        System.out.println(this.color+this.point);
    }
}